import request from '@/utils/request'

// 查询分割算法SKU列表
export function listSegBaseSku(query) {
  return request({
    url: '/genius/platform-seg-algo-v1/list',
    method: 'get',
    params: query
  })
}

// 查询分割算法SKU详细
export function getSegBaseSku(id) {
  return request({
    url: '/genius/platform-seg-algo-v1/' + id,
    method: 'get'
  })
}

// 新增分割算法SKU
export function addSegBaseSku(data) {
  return request({
    url: '/genius/platform-seg-algo-v1',
    method: 'post',
    data: data
  })
}

// 修改分割算法SKU
export function updateSegBaseSku(data) {
  return request({
    url: '/genius/platform-seg-algo-v1',
    method: 'put',
    data: data
  })
}

// 逻辑删除分割算法SKU
export function removedSegBaseSku(id) {
  return request({
    url: '/genius/platform-seg-algo-v1' + id,
    method: 'delete'
  })
}
